<?php
   print _user_base_header_info();
?>

<?php if(empty($form['#upgrade_required_error'])){  ?>
<div class="hp-tab-newprd upgrade-div">
    <p style="padding-left: 60px;font-weight: bold;color: #666;">温馨提示：完成基本信息的填写，您的账户即可升级，您将获得在线提问，咨询客服等更多服务。</p>
    <div class="upgrade-btn-div">
        <div class="registerbtn upgrade-align-div" ><input type="button" id='farmer-upgrade' value="升级成农户"/></div>
        <div class="registerbtn upgrade-align-div" ><input type="button" id='distributor-upgrade' value="升级成经销商"/></div>
    </div>

</div>
<?php }  ?>
<br/><br/>

<?php print drupal_render_children($form); ?>
<script>
    jQuery('#farmer-upgrade').click(function(){
        if(window.location.host == 'www.metercomm.com.cn'){
            window.location.href='/nonghua/account/upgrade/farmer';
        }else{
            window.location.href='/account/upgrade/farmer';
        }
    })
    jQuery('#distributor-upgrade').click(function(){
        if(window.location.host == 'www.metercomm.com.cn'){
            window.location.href='/nonghua/account/upgrade/distributor';
        }else{
            window.location.href='/account/upgrade/distributor';
        }
    })
</script>
